package com.easy.mapper;

import com.easy.bean.Top_Pattern;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Top_patternDao {
    int add(@Param("top_pattern") Top_Pattern top_pattern);
    int del(@Param("id") Integer id);
    int edit(@Param("top_pattern") Top_Pattern top_pattern);
    Top_Pattern one(@Param("id") Integer id);
    List<Top_Pattern> all(@Param("top_pattern") Top_Pattern top_pattern);
    List<Top_Pattern> page(@Param("page") Page page, @Param("top_pattern") Top_Pattern top_pattern);
    int pageCount(@Param("top_pattern") Top_Pattern top_pattern);
}
